<template>
	<view>
		<view class="car">

			<view class="box1">
				<view style="color: #FFFFFF; font-size: 108rpx;">{{GoldProductNowData.liveGoldPrice}}</view>
				<view style="color: #FFFFFF; font-size: 24rpx;">

					事实黄金价格（元/克）</view>
			</view>
			<view class="box2">
				<view class="box2-1 view">
					<view style="font-size: 28rpx;">{{GoldProductNowData.todayGoldPrice}}</view>
					<view style="font-size: 20rpx;">黄金今日开盘价格</view>
				</view>
				<view class="box2-2 view">
					<view style="font-size: 28rpx;">{{GoldProductNowData.liveGrowth}}</view>
					<view style="font-size: 20rpx;">今日跌幅（%）</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	import {
		createNamespacedHelpers
	} from 'vuex';
	const {
		mapState,

	} = createNamespacedHelpers('huangjin');
	export default {
		props:['GoldProductNowData'],
		computed: {
			...mapState(['goodNow'])
		},
		name: "car",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.car {
		background-color: #ff4558;
		height: 400rpx;
		box-sizing: border-box;

		.box1 {
			padding-top: 70rpx;
			height: 70%;

			text-align: center;
		}

		.box2 {
			height: 30%;
			box-sizing: border-box;
			padding-bottom: 10rpx;


			display: flex;

			.view {
				padding-top: 20rpx;
				color: #ffbec4;
				width: 50%;

				text-align: center;
			}
		}
	}
</style>
